package java_thinking.unit_7._7_2;

/**
 * @Description : 验证继承 的初始化super()
 * @author: cww
 * @DateTime: 2019/2/25 19:47
 */

public class Father {
    private String s ="Father variable";
//    public Father(){
//        System.out.println("Father Constructor");
//    }

    /**
     * 显示指定了有参构造器，意味着如果不写无参构造器则编译器就认为没有无参构造器了
     * @param s
     */
    public Father(String s){
        System.out.println("Father Constructor with String");
    }

    public String f(){
        System.out.println("Father function");
        return "success";
    }
    public String f1(){
        System.out.println("Father function1");
        return "Father function 1";
    }
}
